import request from '@/utils/request'
export default{
  //分页条件查询课程信息
  //page 当前页    limit每页记录数  teacherQuery查询讲师类
  getArticleList(page,limit,articleDataQuery){
    return request({
      url:'/api/v1/admin/article/getAllArticles/'+page+"/"+limit,
      method:'post',
      //将对象转换成json传输
      data:articleDataQuery
    })
  },
  //删除课程
  deleteArticle(articleId){
   return request({
     url:'/api/v1/admin/article/deleteArticleById/'+articleId,
     method:'delete',
   })
  }
}
